﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
using System.IO;


namespace SpaceArcade
{
    class Background
    {
        private Bitmap backgroundImage;        

        public Background(string imagePath, int width, int height)
        {                    
            this.backgroundImage = new Bitmap(Image.FromFile(GamePath.TexturesPath + imagePath), width, height);                    
        }

        public void Draw(Bitmap gameBM)
        {
            Graphics.FromImage(gameBM).DrawImage(this.backgroundImage, 0, 0);
        }        
    }
}
